<#include "/common/layout.html"> 
<@layout title="123">
<script type="text/javascript" src="/js/easyui/easyui_grid.js"></script>
<script type="text/javascript">
var datagrid;
var model_name = "/customerType";
var model_title="会员类型";
	$(function() {
		datagrid=$('#customer_datagrid').datagrid({
		 	url:model_name+'/grid',
		 	columns:[[    
		        {field:'id',title:'编号',width:100,checkbox:true},
		        {field:'shop_name',title:'商户名'},
		        {field:'name',title:'类型名称',width:200},
		        {field:'discount',title:'折扣值',align:'right',width:200},
		        {field:'discount_type',title:'折扣类型',width:200,
		        	formatter: function(value,row,index){
		        		return value==1?'百分比折扣':'固定值折扣';
		        	}
		        },
		        {field:'create_time',title:'创建时间',width:200}
		    ]]
		})
	})
	
</script>
<script type="text/javascript" src="/js/easyui/easyui_grid_common.js"></script>

</head>
<#include "/common/seach.html" />
<@seach tableid="customer_datagrid">
<td>类型名</td>
<td><input type="text" name="seachLike_a.name"></td>
</@seach>
</@layout>